package com.example.myapplication;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

/**
 * Created by 俊辉 on 2018/5/30.
 */

public class NotifyService extends Service {
    public IBinder onBind(Intent intent){
        return null;
    }
    public void onCreate(){
        MainActivity app=MainActivity.getApp();
        app.btEvent("from NotifyService");
        Toast.makeText(this,"This is a selfcontained service of system",Toast.LENGTH_LONG).show();

    }
}
